home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility2 / wine02bx.zip / LISP / COMINT / COMINT.ELC < prev    next >
Text File  |  1993-03-28  |  26KB  |  295 lines

  1. ;;; compiled by jwz@thalidomide on Wed Oct 28 19:14:19 1992
  2. ;;; from file /u/jwz/emacs19/lisp/comint/comint.el
  3. ;;; emacs version 19.3.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (byte-code "└┴!ê┬└ç" [provide comint "2.02" comint-version] 2)
  14. (defvar comint-prompt-regexp "^" "\
  15. Regexp to recognise prompts in the inferior process.
  16. Defaults to \"^\", the null string at BOL.
  17.  
  18. Good choices:
  19.   Canonical Lisp: \"^[^> ]*>+:? *\" (Lucid, franz, kcl, T, cscheme, oaklisp)
  20.   Lucid Common Lisp: \"^\\(>\\|\\(->\\)+\\) *\"
  21.   franz: \"^\\(->\\|<[0-9]*>:\\) *\"
  22.   kcl: \"^>+ *\"
  23.   shell: \"^[^#$%>]*[#$%>] *\"
  24.   T: \"^>+ *\"
  25.  
  26. This is a good thing to set in mode hooks.")
  27. (defvar input-ring-size 30 "\
  28. Size of input history ring.")
  29. (defvar comint-get-old-input 'comint-get-old-input-default "\
  30. Function that submits old text in comint mode.
  31. This function is called when return is typed while the point is in old text.
  32. It returns the text to be submitted as process input.  The default is
  33. comint-get-old-input-default, which grabs the current line, and strips off
  34. leading text matching comint-prompt-regexp")
  35. (defvar comint-input-sentinel 'ignore "\
  36. Called on each input submitted to comint mode process by comint-send-input.
  37. Thus it can, for instance, track cd/pushd/popd commands issued to the csh.")
  38. (defvar comint-input-filter #[(str) "└┴\n\"?¡ä\nG├Vç" [string-match "\\`\\s *\\'" str 2] 3] "\
  39. Predicate for filtering additions to input history.
  40. Only inputs answering true to this function are saved on the input
  41. history list. Default is to save anything longer than two characters
  42. that isn't all whitespace. If an existing item in the history exactly
  43. matches the new input, the existing item is removed and the new input
  44. is added.")
  45. (defvar comint-input-sender 'comint-simple-send "\
  46. Function to actually send to PROCESS the STRING submitted by user.
  47. Usually this is just 'comint-simple-send, but if your mode needs to 
  48. massage the input string, this is your hook. This is called from
  49. the user command comint-send-input. comint-simple-send just sends
  50. the string plus a newline.")
  51. (defvar comint-eol-on-send 'T "\
  52. If non-nil, then jump to the end of the line before sending input to process.
  53. See COMINT-SEND-INPUT")
  54. (defvar comint-mode-hook nil "\
  55. Called upon entry into comint-mode
  56. This is run before the process is cranked up.")
  57. (defvar comint-exec-hook nil "\
  58. Called each time a process is exec'd by comint-exec.
  59. This is called after the process is cranked up.  It is useful for things that
  60. must be done each time a process is executed in a comint-mode buffer (e.g.,
  61. (process-kill-without-query)). In contrast, the comint-mode-hook is only
  62. executed once when the buffer is created.")
  63. (byte-code "└┴!¼é┬┬ç" [boundp comint-mode-map nil] 2)
  64. (fset 'comint-mode #[nil "└     ─╞╚    ╩ !ê╠═!ê╬ ╠╧!ê╬ ╠╨!ê╤╠╥!ê╠╙!ê╠╘!ê╒╠╓!ê╫╠╪!ê╠┘!ê╠┌!ê╠█!ê╠▄!ê╠┴!ê\n▌▐!ê▀α !½â ¬äß!!*ç" [get-input-ring comint-ptyp old-ptyp old-ring comint-mode major-mode "Comint" mode-name (": %s") mode-line-process use-local-map comint-mode-map make-local-variable comint-last-input-start make-marker comint-last-input-end comint-last-input-match "" comint-prompt-regexp input-ring-size input-ring nil input-ring-index 0 comint-get-old-input comint-input-sentinel comint-input-filter comint-input-sender comint-eol-on-send run-hooks comint-mode-hook set-input-ring ring-p make-ring] 3 "\
  65. Major mode for interacting with an inferior interpreter.
  66. Interpreter name is same as buffer name, sans the asterisks.
  67. Return at end of buffer sends line as input.
  68. Return not at end copies rest of line to end and sends it.
  69. Setting mode variable comint-eol-on-send means jump to the end of the line
  70. before submitting new input.
  71.  
  72. This mode is typically customised to create inferior-lisp-mode,
  73. shell-mode, etc.. This can be done by setting the hooks
  74. comint-input-sentinel, comint-input-filter, comint-input-sender and
  75. comint-get-old-input to appropriate functions, and the variable
  76. comint-prompt-regexp to the appropriate regular expression.
  77.  
  78. An input history is maintained of size input-ring-size, and
  79. can be accessed with the commands comint-next-input [\\[comint-next-input]] and 
  80. comint-previous-input [\\[comint-previous-input]]. Commands not keybound by
  81. default are send-invisible, comint-dynamic-complete, and 
  82. comint-list-dynamic-completions.
  83.  
  84. If you accidentally suspend your process, use \\[comint-continue-subjob]
  85. to continue it.
  86.  
  87. \\{comint-mode-map}
  88.  
  89. Entry to this mode runs the hooks on comint-mode-hook" nil])
  90. (byte-code "¼Θ┴ ┬├─#ê┬┼╞#ê┬╟─#ê┬╚╔#ê┬╩╦#ê┬╠═#ê┬╬╧#ê┬╨╤#ê┬╥╙#ê┬╘╒#ê┬╓╫#ê┬╪┘#ê┬┌█#ê┬▄▌#ê┬▐▀#ê┬αß#ê┬Γπ#ê┴ç" [comint-mode-map make-sparse-keymap define-key "p" comint-previous-similar-input "n" comint-next-similar-input "s" "" comint-send-input "" comint-bol "" comint-kill-input "" backward-kill-word "" comint-interrupt-subjob "" comint-stop-subjob "" comint-quit-subjob "" comint-send-eof "" comint-kill-output "r" comint-previous-input-matching "" comint-show-output "P" comint-msearch-input "N" comint-psearch-input "R" comint-msearch-input-matching] 4)
  91. (fset 'full-copy-sparse-keymap #[(km) ":½è┴@!┴A!Bç┬!ç" [km full-copy-sparse-keymap copy-keymap] 3 "\
  92. Recursively copy the sparse keymap KM"])
  93. (fset 'comint-check-proc #[(buffer-name) "└    !ë¡à├\n!─>)ç" [get-buffer-process buffer-name proc process-status (run stop)] 3 "\
  94. True if there is a process associated w/buffer BUFFER-NAME, and
  95. it is alive (status RUN or STOP)."])
  96. (fset 'comint-mark #[nil "└┴p!!ç" [process-mark get-buffer-process] 3 "\
  97. Returns the process-mark of the current buffer."])
  98. (byte-code "└┴Mê┬└Mç" [make-comint #[(name program &optional startfile &rest switches) "└┬├ ├Q!)╞!ë½ê╚!╔>¼ôèqê╩ ê)╦  %ê*ç" [fundamental-mode default-major-mode get-buffer-create "*" name buffer get-buffer-process proc process-status (run stop) comint-mode comint-exec program startfile switches] 7] make-shell] 2)
  99. (defvar comint-ptyp t "\
  100. True if communications via pty; false if by pipe. Buffer local.
  101. This is to work around a bug in emacs process signalling.")
  102. (fset 'comint-exec #[(buffer name command startfile switches) "èqê┴!ë½ä├\n!ê)─$╚╔!ê\n    dbê╦\n!`╠ôê½¢╬╧!êdbê╨!ê`d{`d|ê╤\n\"ê)╥╙!ê)ç" [buffer get-buffer-process proc delete-process comint-exec-1 name command switches make-local-variable comint-ptyp process-connection-type process-mark nil startfile sleep-for 1 insert-file-contents comint-send-string run-hooks comint-exec-hook] 6 "\
  103. Fires up a process in buffer for comint modes.
  104. Blasts any old process running in the buffer. Doesn't set the buffer mode.
  105. You can use this to cheaply run a series of processes in the same comint
  106. buffer. The hook comint-exec-hook is run after each exec."])
  107. (byte-code "└┴Mê┬├Mç" [comint-exec-1 #[(name buffer command switches) "└┴!½Ö┬    ├─┼ \"╞╟E\"╚╔\n  %)ç╬╧!╬╨!╬╤!╒Ä╓╧├╫┼ \"\"ê╓╨╪\"ê╓╤┘\"ê╚╔\n  %,ç" [boundp process-environment comint-update-env format "TERMCAP=emacs:co#%d:tc=unknown" screen-width "TERM=emacs" "EMACS=t" apply start-process name buffer command switches getenv "TERMCAP" "TERM" "EMACS" emv termv tcapv ((byte-code "└┴\n\"ê└├ \"ê└┼\"ç" [setenv "TERMCAP" tcapv "TERM" termv "EMACS" emv] 3)) setenv "emacs:co#%d:tc=unknown" "emacs" "t"] 6] comint-update-env #[(old-env new) "└    !┬├    \"½╢@╚╔\"¡å╩ëòO A ½ç╠ \"¼Å ½å B B*¬Fƒ*ç" [reverse new mapcar #[(vv) "└┴\n\"¡à\n├ëòOç" [string-match "^[^=]*=" vv 0] 3] vars ans old-env vv string-match "^[^=]*=" 0 var comint-mem] 4]] 2)
  108. (fset 'comint-mem #[(item list &optional elt=) "«ü┴┬ ½ö ¼æ @\"½ä ¬o Aë¼l *ç" [elt= equal nil done list item] 4 "\
  109. Test to see if ITEM is equal to an item in LIST.
  110. Option comparison function ELT= defaults to equal."])
  111. (byte-code "└┴!¼é┬└├!¼é┬─┼Mê╞╟Mç" [boundp use-buffer-local-input-ring nil *buffer-histories-list* get-input-ring #[nil "½ç┴┬!¡╪\nç p─ë½┴¼╛╚@╔H!=½É@╩Iê@╦H¬Ü@╩H=½É@╔╠!Iê@╦HAë¼?¼à═─!¬ü+ç" [use-buffer-local-input-ring boundp input-ring *buffer-histories-list* nil ring buffer list get-buffer 0 1 2 buffer-name set-input-ring] 5] set-input-ring #[(ring-to-use) "└    !¼ä┬ ! ½ë┼╞!ê    ëç╟╚p!p    #    B        ç" [ring-p ring-to-use make-ring input-ring-size use-buffer-local-input-ring make-local-variable input-ring vector buffer-name *buffer-histories-list*] 4]] 2)
  112. (fset 'ring-p #[(x) ":¡ò@¿¡ÉA:¡ïA@¿¡à┴AA!ç" [x vectorp] 2 "\
  113. T if X is a ring; NIL otherwise."])
  114. (byte-code "└┴Mê┬├Mê─┼Mê╞╟Mê╚╔Mç" [ring-head #[(ring) "@ç" [ring] 1] set-ring-head #[(ring value) "AAG\n├W¼à\n    Y½ê─┼╞    \n#!ê\ná)ç" [ring len value 0 error format "Attempt to make head of ring (size = %d) be %d"] 5] ring-tail #[(ring) "A@ç" [ring] 1] set-ring-tail #[(ring value) "AAG\n├W¼à\n    Y½ê─┼╞    \n#!êA\ná)ç" [ring len value 0 error format "Attempt to make head of ring (size = %d) be %d"] 5] ring-vector #[(ring) "AAç" [ring] 1]] 2)
  115. (fset 'make-ring #[(size) "└┴┬ └\\─\"BBç" [1 0 make-vector size nil] 5 "\
  116. Make a ring that can contain SIZE elts"])
  117. (fset 'ring-plus1 #[(index veclen) "┴\\ë U½â─¬ü\n)ç" [index 1 new-index veclen 0] 3 "\
  118. INDEX+1, with wraparound"])
  119. (fset 'ring-minus1 #[(index veclen) "┴U½â\n¬ü├Zç" [index 0 veclen 1] 2 "\
  120. INDEX-1, with wraparound"])
  121. (fset 'ring-plus #[(index increment veclen) "└    \n\\ \"ç" [comint-mod index increment veclen] 3 "\
  122. INDEX+INCREMENT, with wraparound."])
  123. (fset 'ring-length #[(ring) "└    !┬    !├    !GëX½êZ╟\\¬ê Z╟\\\\ë U½â╔¬é,ç" [ring-head ring ring-tail ring-vector siz tl hd 1 len 0] 5 "\
  124. Number of elts in the ring."])
  125. (fset 'ring-empty-p #[(ring) "└    !┬Uç" [ring-length ring 0] 2])
  126. (fset 'ring-insert-new #[(ring item) "└    !ëG─┼    ! \"╟    \"ê\nIê╔    !¡ë╩    ─╦    ! \"\"+ç" [ring-vector ring vec len ring-minus1 ring-head new-hd set-ring-head item ring-empty-p set-ring-tail ring-tail] 6 "\
  127. Insert a new item onto the ring. If the ring is full, dump the oldest
  128. item to make room."])
  129. (fset 'ring-remove-oldest #[(ring) "└    !½ä┬├!ç─    !┼    !╚    ╔G\"\"êH*ç" [ring-empty-p ring error "Ring empty" ring-tail ring-vector vec tl set-ring-tail ring-minus1] 5 "\
  130. Remove the oldest item retained on the ring."])
  131. (fset 'ring-remove-newest #[(ring) "└    !½ä┬├!ç─    !┼    !╚    ╔G\"\"êH*ç" [ring-empty-p ring error "Ring empty" ring-head ring-vector vec hd set-ring-head ring-plus1] 5 "\
  132. Remove the newest item retained on the ring."])
  133. (fset 'comint-mod #[(n m) "┴U½è\n┴W½â\n[ç\nç\nªë┴Y½â\n¬î\n┴Y½â¬é[\\)ç" [m 0 n] 4 "\
  134. Returns N mod M. M is positive. Answer is guaranteed to be non-negative, 
  135. and less than (the absolute value of) M."])
  136. (fset 'ring-ref #[(ring index) "└    !ë├U½à─┼!¬¿╞    !╚    !    ╩    ! ╠\n\"╠\\ G\" H-)ç" [ring-length ring numelts 0 error "indexed empty ring" ring-head hd ring-tail tl ring-vector vec comint-mod index vec-index] 4])
  137. (fset 'ring-search-and-destroy #[(ring victim predicate) "└    !?à╔┬    !─    !╞    !ëG Y½à╔\\¬é\n  ╠¼├ \nW½╝ H\"½¿ V½û  ╔ZHIê ╔Zë ¬f╨    ╤ \"\"ê╥ ╔\\ ¬9?¡╧ W¡╩╙ ?¡┬ X¡╝ H\"½¿ W½û  ╔\\HIê ╔\\ë ¬f╘    ╒\"\"ê╥ ╔\\ ¬9.ç" [ring-empty-p ring ring-head hd ring-tail tl ring-vector vec len 1 top i nil done predicate victim set-ring-head ring-plus1 t 0 set-ring-tail ring-minus1] 6 "\
  138. Search for a matching victim in the ring according to predicate
  139. and destructively remove it if found."])
  140. (fset 'comint-previous-input #[(arg) "└ ┬    !ë─X½ê┼╞!ê╟ ¬▌╚ ¼ê┼╔!ê╟ ¬╤\n╦=½ç `|ꬿ\n═=½ç╬ `|ꬢ─V½â╨¬è─W½â╤¬ü─ `╙ôê╘\\ \"┼╒T\"ê╓    \"cê╦ë*ç" [get-input-ring ring ring-length len 0 message "Empty input ring" ding comint-after-pmark-p "Not after process mark" last-command comint-previous-input comint-last-input-start comint-previous-similar-input comint-mark arg -1 1 input-ring-index nil comint-mod "%d" ring-ref this-command] 4 "\
  141. Cycle backwards through input history." "*p"])
  142. (fset 'comint-next-input #[(arg) "└    [!ç" [comint-previous-input arg] 2 "\
  143. Cycle forwards through input history." "*p"])
  144. (defvar comint-last-input-match "" "\
  145. Last string searched for by comint input history search, for defaulting.
  146. Buffer local variable.")
  147. (fset 'comint-previous-input-matching #[(str) "\n├=¼é─╞ ╚!╔!\n╦\\ë \nW½ö═╬ \"\"¼ë ╦\\ë ¬g \nW½ê├ Z!¬Ä\n├=½â├╨╤!ê╥ ,ç" [str comint-last-input-match last-command comint-previous-input -1 input-ring-index get-input-ring ring regexp-quote ring-length len 1 n string-match ring-ref this-command message "Not found." ding] 6 "\
  148. Searches backwards through input history for substring match." (byte-code "┴┬├ \"!ë╞ÿ½â ¬ü*Cç" [last-command read-from-minibuffer format "Command substring (default %s): " comint-last-input-match s ""] 5)])
  149. (fset 'comint-psearch-input #[nil "└    d┬#½â├ç─┼!ç" [re-search-forward comint-prompt-regexp t nil error "No occurrence of prompt found"] 4 "\
  150. Search forwards for next occurrence of prompt and skip to end of line.
  151. (prompt is anything matching regexp comint-prompt-regexp)" nil])
  152. (fset 'comint-msearch-input #[nil "è└yê┴\ne├#½å─ê`¬ü─)ë½äb¬â╞╟!)ç" [0 re-search-backward comint-prompt-regexp t nil p error "No occurrence of prompt found"] 5 "\
  153. Search backwards for previous occurrence of prompt and skip to end of line.
  154. Search starts from beginning of current line." nil])
  155. (fset 'comint-msearch-input-matching #[(str) "\n├!Pè┼yê╞ e╟#½å╚ê`¬ü╚)ë    ½à    b¬â╩╦!*ç" [str comint-last-input-match comint-prompt-regexp regexp-quote r 0 re-search-backward t nil p error "No match"] 5 "\
  156. Search backwards for occurrence of prompt followed by STRING.
  157. STRING is prompted for, and is NOT a regular expression." (byte-code "└┴┬ \"!ë┼ÿ½â ¬ü )Cç" [read-from-minibuffer format "Command (default %s): " comint-last-input-match s ""] 5)])
  158. (defvar comint-last-similar-string "" "\
  159. The string last used in a similar string search.")
  160. (fset 'comint-previous-similar-input #[(arg) "└ ¼ä┴┬!ê ─=¼ë┼╟ `{G    ╩  ╠ !┼U½Å╧U½â╨¬Ä╧Z¬ê╤#ë╘╘¼░╫ \"ëG    W¼ï╨    Oÿ¼û╤#ëU½R╪ë½P¼ƒ ─=½ç`|ê¬å`╘ôê    ╘Oc¬è┌█!ê▄ ê▌╧!.ç" [comint-after-pmark-p error "Not after process mark" last-command comint-previous-similar-input -1 input-ring-index comint-mark comint-last-similar-string size get-input-ring ring ring-length len arg 1 0 ring-plus limit n nil done entry ring-ref t comint-last-input-start message "Not found." ding sit-for] 5 "\
  161. Reenters the last input that matches the string typed so far.  If repeated 
  162. successively older inputs are reentered.  If arg is 1, it will go back
  163. in the history, if -1 it will go forward." "p"])
  164. (fset 'comint-next-similar-input #[(arg) "└└\n[!ç" [comint-previous-similar-input this-command arg] 2 "\
  165. Reenters the last input that matches the string typed so far.  If repeated 
  166. successively older inputs are reentered.  If arg is 1, it will go forward
  167. in the history, if -1 it will go back." "p"])
  168. (fset 'comint-send-input #[nil "└p!ë¼à┬├!¬Σ─ ╞    !╚!    `    Y½ì\n½â╦ê`{¬É  bêcê)╧cê!½ì╤╥#ê╙\"ê!ê    \"ê╞    !`╦ôê`╦ô,)ç" [get-buffer-process proc error "Current buffer has no process" get-input-ring ring process-mark pmark marker-position pmark-val comint-eol-on-send nil comint-get-old-input copy input 10 comint-input-filter ring-search-and-destroy string-equal ring-insert-new comint-input-sentinel comint-input-sender comint-last-input-end] 5 "\
  169. Send input to process.  After the process output mark, sends all text
  170. from the process mark to point as input to the process.  Before the
  171. process output mark, calls value of variable comint-get-old-input to retrieve
  172. old input, copies it to the end of the buffer, and sends it.  A terminal
  173. newline is also inserted into the buffer and sent to the process.  In either
  174. case, value of variable comint-input-sentinel is called on the input before
  175. sending it.  The input is entered into the input history ring, if value of
  176. variable comint-input-filter returns non-nil when called on the input.
  177.  
  178. If variable comint-eol-on-send is non-nil, then point is moved to the end of
  179. line before sending the input.
  180.  
  181. comint-get-old-input, comint-input-sentinel, and comint-input-filter are chosen
  182. according to the command interpreter running in the buffer. E.g.,
  183. If the interpreter is the csh,
  184.     comint-get-old-input is the default: take the current line, discard any
  185.         initial string matching regexp comint-prompt-regexp.
  186.     comint-input-sentinel monitors input for \"cd\", \"pushd\", and \"popd\" 
  187.         commands. When it sees one, it cd's the buffer.
  188.     comint-input-filter is the default: returns T if the input isn't all white
  189.     space.
  190.  
  191. If the comint is Lucid Common Lisp, 
  192.     comint-get-old-input snarfs the sexp ending at point.
  193.     comint-input-sentinel does nothing.
  194.     comint-input-filter returns NIL if the input matches input-filter-regexp,
  195.         which matches (1) all whitespace (2) :a, :c, etc.
  196.  
  197. Similarly for Soar, Scheme, etc.." nil])
  198. (fset 'comint-get-old-input-default #[nil "è└yê┴ ê`├ê\n`{*ç" [0 comint-skip-prompt beg nil] 2 "\
  199. Default for comint-get-old-input: take the current line, and discard
  200. any initial text matching comint-prompt-regexp."])
  201. (fset 'comint-skip-prompt #[nil "è└ê`)┬ !¡ë─ò    X¡â─òb)ç" [nil eol looking-at comint-prompt-regexp 0] 2 "\
  202. Skip past the text matching regexp comint-prompt-regexp. 
  203. If this takes us past the end of the current line, don't skip at all."])
  204. (fset 'comint-after-pmark-p #[nil "└┴ !ë`X)ç" [marker-position comint-mark proc-pos] 3 "\
  205. Is point after the process output marker?"])
  206. (fset 'comint-simple-send #[(proc string) "└    \n\"ê└    ├\"ç" [comint-send-string proc string "\n"] 3 "\
  207. Default function for sending to PROC input STRING.
  208. This just sends STRING plus a newline. To override this,
  209. set the hook COMINT-INPUT-SENDER."])
  210. (fset 'comint-bol #[(arg) "└yê    ?¡é┬ ç" [0 arg comint-skip-prompt] 1 "\
  211. Goes to the beginning of line, then skips past the prompt, if any.
  212. If a prefix argument is given (\\[universal-argument]), then no prompt skip 
  213. -- go straight to column 0.
  214.  
  215. The prompt skip is done by skipping text matching the regular expression
  216. comint-prompt-regexp, a buffer local variable.
  217.  
  218. If you don't like this command, reset c-a to beginning-of-line 
  219. in your hook, comint-mode-hook." "P"])
  220. (fset 'comint-read-noecho #[(prompt) "└┴┬;½ì╟!┴ÿ¼à╟!ê╚ ë╔U¼ì ╩U¼ê ╦ !P¬k╟┴!ê +ç" [0 "" nil tem answ echo-keystrokes prompt message read-char 13 10 char-to-string] 3 "\
  221. Prompt the user with argument PROMPT. Read a single line of text
  222. without echoing, and return it. Note that the keystrokes comprising
  223. the text can still be recovered (temporarily) with \\[view-lossage]. This
  224. may be a security bug for some applications."])
  225. (fset 'send-invisible #[(str) "└p!ë¼à┬├!¬Æ─    ;½â¬â╞╟!\"ê─    ╚\")ç" [get-buffer-process proc error "Current buffer has no process" comint-send-string str comint-read-noecho "Enter non-echoed text" "\n"] 5 "\
  226. Read a string without echoing, and send it to the process running
  227. in the current buffer. A new-line is additionally sent. String is not 
  228. saved on comint input history list.
  229. Security bug: your string can still be temporarily recovered with
  230. \\[view-lossage]." "P"])
  231. (defvar comint-input-chunk-size 512 "\
  232. *Long inputs send to comint processes are broken up into chunks of this size.
  233. If your process is choking on big inputs, try lowering the value.")
  234. (fset 'comint-send-string #[(proc str) "Gë\n^─╞ O\"ê     W¡Ö \n\\╚ ê─     ^O\"ê)¬b*ç" [str len comint-input-chunk-size i process-send-string proc 0 next-i accept-process-output] 7 "\
  235. Send PROCESS the contents of STRING as input.
  236. This is equivalent to process-send-string, except that long input strings
  237. are broken up into chunks of size comint-input-chunk-size. Processes
  238. are given a chance to output between chunks. This can help prevent processes
  239. from hanging when you send them long inputs on some OS's."])
  240. (fset 'comint-send-region #[(proc start end) "└    \n {\"ç" [comint-send-string proc start end] 4 "\
  241. Sends to PROC the region delimited by START and END.
  242. This is a replacement for process-send-region that tries to keep
  243. your process from hanging on long inputs. See comint-send-string."])
  244. (fset 'comint-kill-output #[nil "└ ┬     \"ê    bê─cê    `┼ô)ç" [comint-mark pmark kill-region comint-last-input-end "*** output flushed ***\n" nil] 3 "\
  245. Kill all output from interpreter since last input." nil])
  246. (fset 'comint-show-output #[nil "bê┴ ê┬yê├─ `\"ê┼ç" [comint-last-input-end backward-char 0 set-window-start selected-window nil] 3 "\
  247. Display start of this batch of interpreter output at top of window.
  248. Also put cursor there." nil])
  249. (fset 'comint-interrupt-subjob #[nil "└┴\n\"ç" [interrupt-process nil comint-ptyp] 3 "\
  250. Interrupt the current subjob." nil])
  251. (fset 'comint-kill-subjob #[nil "└┴\n\"ç" [kill-process nil comint-ptyp] 3 "\
  252. Send kill signal to the current subjob." nil])
  253. (fset 'comint-quit-subjob #[nil "└┴\n\"ç" [quit-process nil comint-ptyp] 3 "\
  254. Send quit signal to the current subjob." nil])
  255. (fset 'comint-stop-subjob #[nil "└┴\n\"ç" [stop-process nil comint-ptyp] 3 "\
  256. Stop the current subjob.
  257. WARNING: if there is no current subjob, you can end up suspending
  258. the top-level process running in the buffer. If you accidentally do
  259. this, use \\[comint-continue-subjob] to resume the process. (This
  260. is not a problem with most shells, since they ignore this signal.)" nil])
  261. (fset 'comint-continue-subjob #[nil "└┴\n\"ç" [continue-process nil comint-ptyp] 3 "\
  262. Send CONT signal to process buffer's process group.
  263. Useful if you accidentally suspend the top-level process." nil])
  264. (fset 'comint-kill-input #[nil "└ ┬    !` V¡ä─    `\"*ç" [comint-mark pmark marker-position p-pos kill-region] 3 "\
  265. Kill all text from last stuff output by interpreter to point." nil])
  266. (fset 'comint-delchar-or-maybe-eof #[(arg) "m½â└ ç┴\n!ç" [process-send-eof delete-char arg] 2 "\
  267. Delete ARG characters forward, or send an EOF to process if at end of buffer." "p"])
  268. (fset 'comint-send-eof #[nil "└ ç" [process-send-eof] 1 "\
  269. Send an EOF to the process in the current buffer." nil])
  270. (byte-code "└┴Mê┬├Mç" [comint-source-default #[(previous-dir/file source-modes) "½ì    \n>½ê├!─!Bç«ä╟Bç" [buffer-file-name major-mode source-modes file-name-directory file-name-nondirectory previous-dir/file default-directory nil] 3] comint-check-source #[(fname) "└    !ë¡£├\n!¡ù─┼╞╟\n!\"!¡ìp\nqê╔ êq))ç" [get-file-buffer fname buff buffer-modified-p y-or-n-p format "Save buffer %s first? " buffer-name old-buffer save-buffer] 6]] 2)
  271. (fset 'comint-extract-string #[nil "è`┴yê`├ê`bê┼╞\n╟#¡é`Tbê╔╞ ╟#¡é`S\n¡ë\n¡à\n{.ç" [point 0 bol nil eol search-backward "\"" t start search-forward end] 4 "\
  272. Returns string around point that starts the current line or nil."])
  273. (byte-code "└┴Mê┬├Mê─┼!¼é╞└ç" [comint-get-source #[(prompt prev-dir/file source-modes mustmatch-p) "└    \n\"─ ë¡è╞╟╚Å¡ä╔!?ë\n½à╦!¬é @ \n½à═!¬é A╧½ë╨╤#¬é ëP$╒╓!!.Cç" [comint-source-default prev-dir/file source-modes def comint-extract-string stringfile nil (file-exists-p stringfile) ((error)) file-directory-p sfile-p file-name-directory defdir file-name-nondirectory deffile read-file-name format "%s(default %s) " prompt mustmatch-p ans expand-file-name substitute-in-file-name] 6] comint-proc-query #[(proc str) "└    !├    !┼\n!ê\nqê╞\n!╟ !    ╩     \"ê╠    !ê═    \"?¡Ñ╬    !╨     \"ê╤╥!ê═    \"¼å╙!¬å╨    \"),ç" [process-buffer proc proc-buf process-mark proc-mark display-buffer get-buffer-window marker-position proc-pt proc-win comint-send-string str accept-process-output pos-visible-in-window-p window-point opoint set-window-point sit-for 0 push-mark] 3] boundp comint-match-partial-pathname-chars "^][<>{}()!#$^&*\\|?`'^     \n"] 2)
  274. (fset 'comint-match-partial-pathname #[nil "è└┴xê`┴ ┴xê` \nU½ä┼╞!ê╟╚ ╔Q!ê bê╩\n {!+ç" ["     \n" nil p2 p comint-match-partial-pathname-chars error "" looking-at "[" "]+" substitute-in-file-name] 4 "\
  275. Returns the filename at point or causes an error."])
  276. (fset 'comint-replace-by-expanded-filename #[nil "└ ┬    !─    !╞ «é\"ë¼ë╔╩    \"ê╦ ¬ÿ╠=½à╔═!¬ì╬ö╬ò|ê╧ P!c,ç" [comint-match-partial-pathname pathname file-name-directory pathdir file-name-nondirectory pathnondir file-name-completion default-directory completion message "No completions of %s." ding t "Unique completion." 0 expand-file-name] 4 "\
  277. Replace the filename at point with an expanded, canonicalised, and
  278. completed replacement.
  279. \"Expanded\" means environment variables (e.g., $HOME) and ~'s are
  280. replaced with the corresponding directories.  \"Canonicalised\" means ..
  281. and . are removed, and the filename is made absolute instead of relative.
  282. See functions expand-file-name and substitute-in-file-name. See also
  283. comint-dynamic-complete." nil])
  284. (fset 'comint-dynamic-complete #[nil "└ ┬    !─    !╞ «é\"ë¼ë╔╩    \"ê╦ ¬í╠=½à╔═!¬ûܽà╬╠!¬ï╧òbêG╨Oc,ç" [comint-match-partial-pathname pathname file-name-directory pathdir file-name-nondirectory pathnondir file-name-completion default-directory completion message "No completions of %s." ding t "Unique completion." comint-dynamic-list-completions 0 nil] 4 "\
  285. Dynamically complete the filename at point.
  286. This function is similar to comint-replace-by-expanded-filename, except
  287. that it won't change parts of the filename already entered in the buffer; 
  288. it just adds completion characters to the end of the filename." nil])
  289. (fset 'comint-dynamic-list-completions #[(&optional revert-soonest) "└ ┬    !─    !╞ «é\"ë¼ë╔╩    \"ê╦ ¬╠╠ ╬É╧!æê╨╤!ê¼ä╔╙!ê╘╒ !½û╫!½ç╪!ê¬â┘█!¬ô▄!▌=½å╪!¬àë*,ç" [comint-match-partial-pathname pathname file-name-directory pathdir file-name-nondirectory pathnondir file-name-all-completions default-directory completions message "No completions of %s." ding current-window-configuration conf "*Help*" display-completion-list sit-for 0 revert-soonest "Hit space to flush." next-command-event allocate-event ch key-press-event-p set-window-configuration nil not-reverted dispatch-event event-to-character 32 unread-command-event] 4 "\
  290. List in help buffer all possible completions of the filename at point." nil])
  291. (defvar comint-load-hook nil "\
  292. This hook is run when comint is loaded in.
  293. This is a good place to put keybindings.")
  294. (run-hooks 'comint-load-hook)
  295.